local keys1 = KEYS[1]
local argv1 = ARGV[1]
local current = tonumber(redis.call("incr", keys1))
local millisecond = tonumber(argv1)
if current == 1 then
    redis.call("pexpire", keys1, millisecond)
end
return current
